home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
cool
/
ge_cool.lha
/
GE_COOL2.1
/
man
/
oldman3
/
calendar.3T
< prev
next >
Wrap
Text File
|
1992-06-26
|
2KB
|
71 lines
.TH CALENDAR
.SH NAME
calendar Symbolic and string calendar names
.SH SYNOPSIS
#include <cool/calendar.h>
.SH DESCRIPTION
The calendar include file contains enumeration declarations for day and
month names of the types
day_of_week
and
months .
The file declares two static
char*
arrays of printable day and month names. The constants in the enumerated
types can be used as indexes for these names. In addition, an array indexed by
type
month
specifying the number of days in the month is also provided.
Finally, the file defines several macros for typical date and time constants,
along with a macro determining if a year is a leap year. In the following
tables, the enum declaration is on the left and the static
char*
string is on the right.
.sp
.nf
.ta 2.5i
\f2Enumeration Declaration Character String\f1
\l'4.0i'
.PP
SUNDAY "Sunday"
MONDAY "Monday"
TUESDAY "Tuesday"
WEDNESDAY "Wednesday"
THURSDAY "Thursday"
FRIDAY "Friday"
SATURDAY "Saturday"
\l'4.0i'
.fi
.PP
.nf
.ta 2.5i
\f2Enumeration Declaration Character String\f1
\l'4.0i'
.PP
JANUARY "January"
FEBRUARY "February"
MARCH "March"
APRIL "April"
MAY "May"
JUNE "June"
JULY "July"
AUGUST "August"
SEPTEMBER "September"
OCTOBER "October"
NOVEMBER "November"
DECEMBER "December"
\l'4.0i'
.fi
.SH COPYRIGHT
Copyright (C) 1991 Texas Instruments Incorporated.
Permission is granted to any individual or institution to use, copy, modify,
and distribute this software, provided that this complete copyright and
permission notice is maintained, intact, in all copies and supporting
documentation.
Texas Instruments Incorporated provides this software "as is" without
express or implied warranty.